![]() |
NewFeaturesDialog |
||||
Header: | Dialogs.h | Carbon status: | Supported | |
Creates a dialog box from information passed in memory.
DialogPtr NewFeaturesDialog ( void *inStorage, const Rect *inBoundsRect, ConstStr255Param inTitle, Boolean inIsVisible, SInt16 inProcID, WindowPtr inBehind, Boolean inGoAwayFlag, SInt32 inRefCon, Handle inItemListHandle, UInt32 inFlags );
A pointer to the memory for the dialog box. If you set this parameter to null, the Dialog Manager automatically allocates a nonrelocatable block in your application heap.
A pointer to a rectangle, given in global coordinates, that determines the size and position of the dialog box; these coordinates specify the upper-left and lower-right corners of the dialog box.
A pointer to a text string used for the title of a modeless or movable modal dialog box. You can specify an empty string (not null) for a title bar that contains no text.
A flag that specifies whether the dialog box should be drawn on the screen immediately. If you set this parameter to false, the dialog box is not drawn until your application uses the Window Manager function ShowWindow to display it.
The window definition ID for the type of dialog box, specified with constants defined by the Window Manager. Use the kWindowModalDialogProc constant to specify modal dialog boxes, the kWindowDocumentProc constant to specify modeless dialog boxes, and the kWindowMovableModalDialogProc constant to specify movable modal dialog boxes.
A pointer to the window behind which the dialog box is to be placed on the desktop. Set this parameter to the window pointer (WindowPtr)-1L to bring the dialog box in front of all other windows.
A Boolean value. If true, specifies that an active modeless dialog box has a close box in its title bar.
A value that the Dialog Manager uses to set the refCon field of the dialog box’s window structure. Your application may store any value here for any purpose. For example, your application can store a number that represents a dialog box type, or it can store a handle to a structure that maintains state information about the dialog box. You can use the Window Manager function SetWRefCon at any time to change this value in the dialog structure for a dialog box, and you can use the GetWRefCon function to determine its current value.
A handle to an item list resource for the dialog box. You can get the handle by calling the Resource Manager function GetResource to read the item list resource into memory.
An unsigned 32-bit mask specifying the dialog box’s Appearance-compliant feature flags; see
A pointer to the newly created dialog box. If NewFeaturesDialog doesn’t create a new dialog box, it returns null.
The NewFeaturesDialog function creates a dialog box without using 'DLOG' or 'dlgx' resources. Although the inItemListHandle parameter specifies an item list ('DITL') resource for the dialog box, the corresponding dialog font table ('dftb') resource is not automatically accessed. You must explicitly set the dialog box’s control font style(s) individually.
This function is available with Appearance Manager 1.0 and later.
Supported in Carbon. Available in CarbonLib 1.0 and later when CarbonLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by CarbonLib 1.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)